﻿<moria:MoriaPage x:Class="Moria.Silverlight.Views.NewGame" 
                 xmlns:moria="http://Moria/Silverlight"
                 xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" 
                 xmlns:rb="http://Redbrick/Silverlight"
                 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
                 xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
                 xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
                 mc:Ignorable="d"
                 d:DesignWidth="640" d:DesignHeight="480"
                 Title="New Game Options">
      <i:Interaction.Triggers>
        <rb:KeystrokeCommandTrigger Command="NewGameCommand" Gesture="N"/>
        <rb:KeystrokeCommandTrigger Command="RestoreGameCommand" Gesture="O"/>
        <rb:KeystrokeCommandTrigger Command="ViewScoresCommand" Gesture="S"/>
    </i:Interaction.Triggers>

    <moria:MoriaPage.Resources>
        <Style TargetType="TextBlock">
            <Setter Property="FontFamily" Value="Courier New"/>
            <Setter Property="FontSize" Value="20"/>
            <Setter Property="Margin" Value="-.5"/>
        </Style>

    </moria:MoriaPage.Resources>
        <Grid x:Name="LayoutRoot" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
      <Grid.RowDefinitions></Grid.RowDefinitions>
        <Grid.ColumnDefinitions></Grid.ColumnDefinitions>

        <Border x:Name="Content" Background="LightGray" BorderBrush="Black" BorderThickness="2" CornerRadius="5,0,5,5" Margin="10">
            <StackPanel HorizontalAlignment="Center" Margin="0,20,0,0">
                <StackPanel.Resources>
                    <Style TargetType="TextBlock">
                        <Setter Property="FontSize" Value="40"/>
                        <Setter Property="FontWeight" Value="ExtraBold"/>
                        <Setter Property="Foreground" Value="#FFD82121"/>
                        <Setter Property="HorizontalAlignment" Value="Center"/>
                        <Setter Property="Margin" Value="0,-10,0,0"/>
                    </Style>
                </StackPanel.Resources>
                <TextBlock Text="Dungeons" />
                <TextBlock Text="Of" FontSize="20"/>
                <TextBlock Text="Moria"/>
                <TextBlock Text="{Binding Path=Version, StringFormat=Version \{0\}}" FontSize="12"/>
                <Border BorderBrush="Black" BorderThickness="2" CornerRadius="5,0,5,5" Margin="10,20,10,10">
                    <StackPanel Margin="10">
                        <StackPanel.Resources>
                            <Style TargetType="Button">
                                <Setter Property="Margin" Value="3"/>
                            </Style>
                        </StackPanel.Resources>
                        <Button Command="{Binding NewGameCommand}">New Game</Button>
                        <Button Command="{Binding RestoreGameCommand}">Restore Game</Button>
                        <Button Command="{Binding ViewScoresCommand}">Scores</Button>
                    </StackPanel>
                </Border>
            </StackPanel>
        </Border>

    </Grid>

</moria:MoriaPage>
